<?php

/**
 *		//微薄系统用户设置控制页面//
 *		//这是一份试验品，由大街编写（zhongmingzi@gmail.com）
 *		//本程序默认环境：Zend Optimizer Yes / 3.3.3
 *		//		Apache/2.0.63 (Win32) PHP/5.2.12
 *		//		MySQL 支持 Yes / client lib version 5.0.89
 *		//		GD library Yes / bundled (2.0.34 compatible)
 *		//		eAccelerator/Memcache/xcache Yes
 *		//		cURL support enabled
 *		//时间：2011 03 25 02:56:20//
 */
 
 $action = getgpc('action');
 $do = getgpc('do');
 require_once libfile('function/t', '', 't');
 
 if(!$action) {
	 if(isset($_POST['wsubmit'])) {
		if($id = sendtext($_G['gp_text_content'], $_G['uid']) <0) echo $id;
	 }
	 
	 $all = viewls($_G['uid'], $_G['page'], 20);
	 $ls = $all['data'];//var_dump($ls);
	 $page = page($all['page']['ptotal'], $_G['page'], '&page=');
 } elseif($action == 'reply') {
	if(isset($_POST['rsubmit'])) {
		if($id = sendtext($_G['gp_replytext'], $_G['uid'], $_G['gp_replyid']) <0) echo $id;
	 }
	$all = viewnode($_G['gp_cid'], $_G['page'], 4);//var_dump($all);
	$ls = $all['data'];
	$page = page($all['page']['ptotal'], $_G['page'], '&page=');
 }
 
 include_once template("common/mylist");